package com.graduationdesign.zengyan.graduationdesignapp.ui.activities;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.graduationdesign.zengyan.graduationdesignapp.R;

import butterknife.ButterKnife;


public class MainActivity extends AppCompatActivity {



    /**
//     * @param savedInstanceState
     */
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ButterKnife.bind(this);
//        baseUiView.startLoading();

//
//        Map<String, String> map = new HashMap<String, String>();
//        map.put("studentNum", "201430098034");
//        map.put("password", "zengyan060039");
//
//        OrgRepository repository = DataInjection.provideProfileRepository();
//
//
//        repository
//                .login(map)
//                .subscribeOn(Schedulers.io())
//                .observeOn(AndroidSchedulers.mainThread())
//                .subscribe(new Consumer<Result<User>>() {
//                    @Override
//                    public void accept(Result<User> userResult) throws Exception {
//                        System.out.println("######### accept");
//                        Logger.json(userResult.toString());
//                    }
//                }, new Consumer<Throwable>() {
//                    @Override
//                    public void accept(Throwable throwable) {
//                        System.out.println("######### wrong");
//                        Logger.e(throwable,throwable.getMessage());
//                    }
//                });
//
//
//        startActivity(UiInjection.provideProfile(this,"201430098034"));
//        startActivity(UiInjection.provideOrgPersons(this,2));
//        startActivity(UiInjection.provideNav(this));
        startActivity(UiInjection.provideLogin(this));
//        startActivity(UiInjection.provideSearchPeople(this));
//        startActivity(UiInjection.provideWebView(this));
        finish();
    }
}
